As part of our quest to obsolete Shell.GenericContainer, IconGrid will
become a Clutter.Actor subclass. As the ::key-focus-in signal would
clash with Clutter.Actor::key-focus-in, rename it to ::child-focused.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153
else
this._grid = new IconGrid.IconGrid(gridParams);
- this._grid.connect('key-focus-in', (grid, actor) => {
- this._keyFocusIn(actor);
+ this._grid.connect('child-focused', (grid, actor) => {
+ this._childFocused(actor);
});
// Standard hack for ClutterBinLayout
this._grid.actor.x_expand = true;
this._allItems = [];
},
- _keyFocusIn(actor) {
+ _childFocused(actor) {
// Nothing by default
},
});
},
- _keyFocusIn(icon) {
+ _childFocused(icon) {
let itemPage = this._grid.getItemPage(icon);
this.goToPage(itemPage);
},
this.actor.add_action(action);
},
- _keyFocusIn(actor) {
+ _childFocused(actor) {
Util.ensureActorVisibleInScrollView(this.actor, actor);
},
},
_keyFocusIn(actor) {
- this.emit('key-focus-in', actor);
+ this.emit('child-focused', actor);
},
_childAdded(grid, child) {